From 343f2d8c087d6e5bb5343d0686f3653c6af0101a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Sat, 22 Jul 2017 14:13:03 +0200 Subject: [PATCH] notebook: Set tabs child visible before allocating a size Otherwise we might skip them here, then set child-visible to TRUE and then later snapshot them even though they have no valid size. --- gtk/gtknotebook.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index bef55bd5a3..ce55bc5b9e 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -5094,6 +5094,10 @@ gtk_notebook_calculate_tabs_allocation (GtkNotebook *notebook, break; } + /* set child visible */ + if (page->tab_label) + gtk_widget_set_child_visible (page->tab_widget, TRUE); + if (page == priv->cur_page && priv->operation == DRAG_OPERATION_REORDER) { GtkAllocation fixed_allocation = { priv->drag_window_x, priv->drag_window_y, @@ -5160,10 +5164,6 @@ gtk_notebook_calculate_tabs_allocation (GtkNotebook *notebook, break; } - - /* set child visible */ - if (page->tab_label) - gtk_widget_set_child_visible (page->tab_widget, TRUE); } /* Don't move the current tab past the last position during tabs reordering */ -- 2.30.2